﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BinaryTree
{
    class Program
    {
        static void Main(string[] args)
        {
            CreatTree.Tree tree = CreatTree.CreatFakeTree();
            Console.Write("前序遍历：");
            FirstOrder.PreOrder(tree);
            Console.Write("\n中序遍历：");
            MiddleOrder.InOrder(tree);
            Console.Write("\n后序遍历：");
            LastOrder.PostOrder(tree);
            Console.Write("\n顺序遍历：");
            SequenceOrder.LevelOrder(tree);
            Console.Write("\n蛇形遍历：");
            Z_SequenceOrder.Z_LevelOrder(tree);
            Console.ReadKey();
        }
    }
}
